﻿/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

CKEDITOR.editorConfig = function( config )
{
	// Define changes to default configuration here. For example:
	// config.language = 'fr';
	// config.uiColor = '#AADC6E';
  
    config.extraPlugins= 'qsc_bbcode,pastefromword',
    // Remove unused plugins.
    config.removePlugins= 'bidi,button,dialogadvtab,div,filebrowser,flash,format,forms,horizontalrule,iframe,indent,liststyle,pagebreak,showborders,smiley,stylescombo,table,tabletools,templates',
    // Width and height are not supported in the BBCode format, so object resizing is disabled.
    config.disableObjectResizing= true,
    config.fontSize_sizes= "0/0.5em;1/1em;2/1.5em;3/2em;4/2.5em;5/3em;6/3.5em;7/4em;",
    config.toolbar_QSC=
    [
        ['Source', '-', 'Save','NewPage','-','Undo','Redo'],
        ['Find','Replace','-','SelectAll','RemoveFormat'],
        ['Link', 'Unlink', 'Image', 'Smiley','SpecialChar'],
        '/',
        ['Bold', 'Italic','Underline'],
        ['JustifyLeft', 'JustifyCenter','JustifyRight'],
        ['FontSize'],
        ['TextColor'],
        ['NumberedList','BulletedList','-','Blockquote'],
        ['Maximize']
    ],
    config.toolbar= 'QSC',
    config.image_previewText= "图片预览",
    // Strip CKEditor smileys to those commonly used in BBCode.
    config.smiley_images=
    [
        'regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','tounge_smile.gif',
        'embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angel_smile.gif','shades_smile.gif',
        'cry_smile.gif','kiss.gif'
    ],
    config.smiley_descriptions=
    [
        'smiley', 'sad', 'wink', 'laugh', 'cheeky', 'blush', 'surprise',
        'indecision', 'angel', 'cool', 'crying', 'kiss'
    ]

};
